<%-- 
    Document   : index
    Created on : Sep 9, 2012, 1:34:01 PM
    Author     : Admin
--%>

<%@page import="Controller.MyLib"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login</title>
    </head>
    <body>
    <%@include file="template.html"%>
          <% String tb;
            request.setCharacterEncoding("utf-8");            
            tb = MyLib.getParameter("tb", request);
            String username, password;
            username = MyLib.getParameter("username", request);
            password = MyLib.getParameter("password", request);                           
        %>
        <h1>Login page!</h1>
        <form action="Controller" method="post">
          <input type="hidden" name="requestAction" value="Login">
          Username: <input type="text" name="txtUsername"  value="<%=username%>"/></br>
            Password: <input type="password" name="txtPassword"  value="<%=password%>"/></br>
            <input type="submit" value="Login" name ="btnAction"/>
            <input type="reset" value="Reset"/></p>
            
            <%=tb%>
      
        
        </form>
    </body>
</html>
